﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyNet.Componets.Core.Zips
{
    public interface IZip
    {
        /// <summary>
        /// 压缩
        /// </summary>
        /// <param name="files">待压缩文件</param>
        /// <returns>内存流</returns>
        MemoryStream Compression(List<string> files);

        /// <summary>
        /// 压缩
        /// </summary>
        /// <param name="files">待压缩文件</param>
        /// <param name="zipPath">zip文件路径</param>
        void Compression(List<string> files, string zipPath);
        
        /// <summary>
        /// 提取Zip文件
        /// </summary>
        /// <param name="zipPath">压缩文件路径</param>
        /// <param name="extractPath">提取路径</param>
        void Extract(string zipPath, string extractPath);
    }
}
